<?php

class IndexModule extends fvModule {

    function __construct () {
        $moduleName = strtolower(substr(__CLASS__, 0, -6));

        parent::__construct(fvSite::$fvConfig->get("modules.{$moduleName}.smarty.template"), 
                            fvSite::$fvConfig->get("modules.{$moduleName}.smarty.compile"), 
                            fvSite::$Layoult);
    }

    function showIndex($params) {
    	$index_page = base64_decode(file_get_contents(INDEX_PAGE_FILE.'_'.fvSite::$fvSession->get("lang")));
    	$this->__assign(array(
			'page_content' => $index_page
    	));
        return $this->__display('index_index.tpl'); 
    }
}

?>
